package com.ddyx.rest;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddyx.service.TemplateService;
import com.ddyx.util.ResponseForm;

@Controller
@RequestMapping("/template")
public class TemplateController {
	
	@Resource
	TemplateService templateService;
	
	/**
	 * 获取主题列表
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value="getTemplateList")
	public ResponseForm getTemplateList() {
		return templateService.getTemplateList();
	}

}
